<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.infomanage.po.*" %>
<%@page import="com.infomanage.vo.*" %>
<%@page import="com.infomanage.service.study.*"%>
<%  response.addDateHeader("Expires", 0);response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-cache");%>
<%
	request.setCharacterEncoding("UTF-8");
	String itemId = request.getParameter("itemId");
    if(itemId == null) itemId = "";
    
    StudyTheoryItem item = StudyTheoryService.loadStudyTheory(request, response, out);
    int organizersId = -1;
    String organizersName = "";
    int deptId = -1;
    String deptName = "";
    String content = "";
    String description = "";
    String detail = "";
    String participants = "";
    String place = "";
    String timestamp = "";
    if(item != null) {
    	StudyTheory bean = item.getBean();
    	Person person = item.getOrganizer();
    	organizersId = person.getPersonId();
    	organizersName = person.getName();
    	Department dept = item.getDept();
    	deptId = dept.getDeptId();
    	deptName = dept.getPath();
    	content = bean.getContent();
    	description = bean.getDescription();
    	detail = bean.getDetail();
    	participants = bean.getParticipants();
    	place = bean.getPlace();
    	timestamp = bean.getTimestamp();
    } 
%>
<html>
<head>
	<title>理论学习</title>
	<link href="../../css/table.css" rel="stylesheet" type="text/css">
</head>
<body  rightmargin="0" bottommargin="0" leftmargin="0" topmargin="0">
	<table class="dialogTable" cellpadding="0" cellspacing="0">
		<!-- 表头-->
		<tr class="dialogTableHeader">
			<td>理论学习</td>
		</tr>
		<!-- 表数据-->
		<tr class="dialogTableContent">
			<td>
				<!-- 数据项 -->
				<table class="dataTable">
					<col width="20%">
					<col width="30%">
					<col width="10%">
					<col width="40%">
					<tr>
						<td class="field">
							小队
						</td>
						<td colspan="3" height="25px" valign="middle" style="padding-left:5px">
							<%=deptName %>
						</td>
					</tr>
					<tr>
						<td class="field">
							时间
						</td>
						<td>
							<%=timestamp%>
						</td>
						<td class="field">
							地点
						</td>
						<td>
							<%=place%>
						</td>
					</tr>
					<tr>
						<td class="field">
							内容
						</td>
						<td>
							<%=content%>
						</td>
						<td class="field">
							组织人
						</td>
						<td>
							<%=organizersName %>
						</td>
					</tr>
				</table>
				<table class="dataTable2">
					<col width="18%">
					<col width="72%">
					<tr style="height: 100px">
						<td class="field">
							参与人员
						</td>
						<td valign="top">
							<textarea style="width: 100%;height: 100%;background-color:#dfe8f6" readonly><%=participants %></textarea>
						</td>
					</tr>
					<tr style="height: 100px">
						<td  class="field">
							学习内容及考核情况
						</td>
						<td valign="top">
							<textarea style="width: 100%;height: 100%;background-color:#dfe8f6" readonly><%=detail %></textarea>
						</td>
					</tr>
					<tr style="height: 80px">
						<td class="field">
							备注
						</td>
						<td valign="top">
							<textarea style="width: 100%;height: 100%;background-color:#dfe8f6" readonly><%=description %></textarea>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td class="tableBtn">
				<span onclick="window.print();">打印</span>			
				<span onclick="window.close();">关闭</span>
			</td>
		</tr>
		<tr valign="top">
			<td>
				&nbsp;
			</td>
		</tr>
	</table>
</body>
</html>